Add build script for m4