makefile: fixed some compiling errors