(#157) Corrected error with compilation flag

- Due to some code only compiling when not on Debug mode, missed some necessary changes
- Updated build scripts to force the compilation of Release mode
- Left the option to pick what is requred when running build.bat locally