QT5 changes and boost llvm hax for v 1.3

 * A number of changes to bring the codebase up to Qt5
 * A few h4x to get boost compiling, linking and running without
crashing. *sigh*