added standalone makefile. fixed some warnings