Add constants and fix wrong Build and BuildType id.
Validate the build feature params.