Fix POSIX build
Add Makefile