fix warnings and Make file ld_flags