Added support for compiling the library under QT4.8

Just a quick patch that enables this code to compile under QT 4.8