Added support for compiling this code under QT 4.8