Added some linker options to build on linux