fix include line and cast char for ANSI C