fixed compile errors caused by Qt's updated libraries