Change makefile, fix compiler warnings