Fix cmake build (unittests don't have no-cast-from-ascii with qmake either)