Add makefile, fix compilations