compat: compatibility patch 3.9

Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
compat: compatibility patch 3.7

Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
Merge branch 'Linux > 3.7 Compatibility'