Added build script for KeyGen.