Fix linker flags with gold