Added -W* flags, and eliminated warnings