TST: Fix image_test_case.py for python3

NOTE: The test file currently segfaults with gcc (4.8.2) possibly
due to compiler bug on optimization level >= O1;
use clang instead to compile kiva