Core Posix support.

I've added complete posix support for the core module. I can't test yet because the build fails on other modules, but it should work out of the box.