Fix warnings in debug printing code

Also, this will only compile now if BITCASK_DEBUG is set.