Add -Wall and -Werror
Remove redundant import
Enable optimizations