Qt5 should work. Most code lines i did under Qt5 (your branch). Yesterday i had to compile Qt 4.8.4 on mac to get it also running on master/Qt4.8 (compile took ~4h). So it should work on both. Maybe the #include fix is missing.