Added "setlocal" to DOS scripts.

Without "setlocal", environment variables are global.
Turned off boost memory leak detection.

On Windows, this was causing false positives when running the unit tests.
Refactored CMakeLists.txt; reduced global variables.
Merge branch 'master' of https://github.com/sparist/Om