Add changes required to build against Qt 5.3.0

Change-Id: If8375223594fcb28e8faabec888ba43a63754ba1
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>