Made it compile on Go 1.2+, and all tests pass on Linux (ran with as roo...

Fixed it to run on Go 1.2+.