Fix gcc warnings; Fix option -e, -l, and -w