added mkdata.pl generator for cross-compiling, fixes #31