Add some more POSIX headers needed for dash

Depends on #1166