bunch of posix compliance
darwin fixes