Thank you fpr your reply, I think I finally got it. I added a file called "platform.txt" to the "C:\Program Files (x86)\Arduino\hardware" folder where Arduino IDE is installed. The file contains the following line:
build.extra_flags=-DOSH_NOXMLNS
I shutdown all IDEs and restarted Arduino IDE and did a compile and push to the MEGA. I checked the receiving server and it seems to be working.
I think I get that the build options will cause problems if something else needs to use them. If other options are needed will they still be appended to these or will this be the only option used since it is the only line in the file?