configure: try to disable weak linking on OSX