Kernel compatibility from 3.6 downwards to 3.1 restored.

(only compile-time tested)

Signed-off-by: Massimo Maggi <me@massimo-maggi.eu>