Copied build scripts from xTuple