Clear warnings

fix linker flag