fix build without -fpermissive

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>