fixes for boost 1.56 and Qt4
Merge pull request #938 from fran6co/boost-qt4

fixes for boost 1.56 and Qt4