Correct Lid Resume Control and add resume from S5

Update Lid Resume Control function according to vanilla kernel API and
add new resume from S5 on lid open control.
Use qmake-qt4 instead of qmake