Fix compile with 4.7+

Signed-off-by: kecinzer <kecinzer@gmail.com>