Update for Qt 5

Support to make on Qt 5