linker flag changes to link correctly on linux