remove unneeded linker flags