- check return values of some syscalls (fixes #3)
- change includes
- remove old registry files