added posix version to compilation