Change param for free() and realloc() to const void* (thereby slightly deviating from the standard)