Fix -fpermissive issues

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