fix linker flags