Fixed const-correctness. Turned on -Werror. Set the standard to C11.