Fixed errors caused by ansi compiler flag.