Previously, clBuildProgram() was returning CL_COMPILE_PROGRAM_FAILURE
instead of CL_BUILD_PROGRAM_FAILURE when the compile method, called from
the build method, failed.
This was caught by a piglit v1.2 test:
"Failed (error code: CL_COMPILE_PROGRAM_FAILURE): Trigger CL_BUILD_PROGRAM_FAILURE if there is a failure to build the program executable."
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>