-fpermissive is needed due to mismatching parameters (const char vs char). Signed-off-by: Rosen Penev <rosenp@gmail.com>