Add some more POSIX headers needed for dash

Depends on #1166
No institution as author (anymore).