Check for DQT_NO_CAST_FROM_BYTEARRAY
Summary: add the build flag and fix all errors
Reviewers: bruns
Reviewed By: bruns
Subscribers: Baloo
Tags: Baloo
Differential Revision: https://phabricator.kde.org/D22159