Properly handle linking of strong alias with weak function, this fixes PR2883