Merge pull request #1 from pitrou/master

Basic Linux compatibility
Merge pull request #2 from pitrou/master

Start test suite
Merge pull request #3 from pitrou/master

Some more tests