[compilation] Fix compilation on glibc 2.19/gcc 4.8

This was blocking builds of software which relies on
QT_NO_CAST_FROM_ASCII
like contactsd, that fails to build without this patch
Merge pull request #17 from faenil/nemomerge_fixes

[compilation] Fix compilation on glibc 2.19/gcc 4.8