Updated warning messages, fixed bug in #defines for mod build, and fixed bug for patch removal.