Portability now working

This issues is that booleans as kernel arguments are not allowed
in NVIDIA's opencl implementation. I changed it to an int. Along
the way I added build log printing upon failure.