use -Wextra
remove unused includes and use EXIT_{SUCCESS,FAILURE}