Compilation fix for Qt > 5.0.1

In Qt 5.2 some methods have been renamed.
And linking with glib2 is now a requirement.
Fix the greeter that had two windows

The inheritence was wrong leading to having 2 windows
Improve keyboard support

This patch improved keyboard to correctly handle the numeric keypad. It also
handles correctly the modifiers sent with a synchronizePacket.