Different linker behaviour on OSX and GNU/Linux regarding python