Add build type option for makeGPFunction.py