Add posix support library, and adjust makefiles for it