Desktop swig module fix.
Add global include for swig files, add ifdefs for cmath include in modules.