change curchar type - should help compile on Linux ARM???