Make it compilable with Qt 5.1.0 and Windows. Hooray!