Move debug mode switch to the build script.

In debug mode, define MIK_DEBUG and compile with debug symbols.

In normal mode, define MIK_DEBUG as false and compile optimized.