fix BOOL conflict with mingw
ifdef visual studio debug hooks
fix i64d format string with mingw