Source files clean up

Cleaned up source files for redundant and inactive #if directives
34 files changed