Fixed wrong function call in metapost.
Added build script and updated .gitignore accordingly.