Enable debug and fix clang-ia32

* Enable debug mode when building, usually picks up some printf style
problems

* Fix uint64_t -> size_t conversion error in Clang