Index migration to version 0.3 on startup.

Also some minor updates of autogenerated header files.