Removed a number of compiler warnings being reported as errors in xbuild