fix compiler warning in SDL2
finally add debugging macros, utility functions, and redis' zmalloc for awesome memory accounting and easy switchout (later) with tcmalloc and jemalloc