fixed some pre-processor defines in EM engine source file