Fix for Go v1

This fixes a few build errors where the `syscall` interfaces appear to have changed since this package was written. Otherwise, everything seems to work fine.