Add build script and .{hg,git}ignore files.