Added Qt5 compatibility.

The changes allow to build the qRestAPI library with both Qt4 or Qt5.