minor syntax erros by newer gcc changed