don't use two sets of logging functions

I didn't really think about it the first time around

* use only one set of logging macros instead of two
* don't use free() as a function name (clashes with msvc memory debugging)