Move version.c generation to Makefile