Fix use of uninitialized variable (err)

  .. and fix the end of test_clCreateKernelsInProgram.c
Merge pull request #92 from franz/minor_bugfixes

Fix use of uninitialized variable (err) in the tests