Bump version to 0.4.
Tests require this `compiled` directory to exist; update .gitignore.
Fix version number and date in CHANGES.rst.