Fixes compilation issue on Qt 4.7.4
Fixes #266