Fix compilation of 0-length files.

Closes mirage/mirage#177
Also run tests in Travis