adapt to libupnp config: availability of log/debug functions, off_t size