Fix warns, add Makefile