Fixed OSX clang ld error