linker issues with osx and gcc