fixing posix builds (incomplete)