Fix compilation errors on Linux kernel v3.11

Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>