allow package to build on not linux

although it is functionally worthless and will never send an event.
change default implementation to return errors
fix whitespace
Merge pull request #1 from zeebo/master

allow package to build on not linux