[FIX] fix compile warnings and increase QT min version to 4.6

Fixes some compile warning. I'm pretty sure that we already use QT 4.6 features so the increase in min version should not be a big problem.