Make compatible with Qt 5.2.0.