Qt5 support

This is based on VanNostrand's initial qt5 port; compiles and run fine on - at least - osx.
We are comparing a two QDateTime: one returned by the system with the current time, the other  retrieved from the certificate; since QDateTime already handles timezones itself, i suppose we should not take care of it.