Set default build type to release with debug info.

 - Fix build type getting reset to "Debug" after make config.
 - Fix warnings on release build.
 - Merge macro_func.h to compiler_defs.h
Set version to 0.6.1.