* fix build * move debug define to cmake build options * using namespace * add debug build check * remove build type check