fixed some warnings
add Makefile for *nix