fixed typo in Makefile and fixed compiler warnings