Made it compile on Go 1.2+, and all tests pass on Linux (ran with as root of course