Build with Qt 5.0.0

Replace setWindowFlags with setFlags.