Fix a compile problem when debug is enabled and fix a timeout socket problem.

The debug problems happens when compiling with an APR version without APR_POOLDEBUG enabled at compile time (that is, most of the times).
This disables the use of debugging functions by default. After all ATM there is no need to debug memory functions because NProxy doesn't leak memory.

The other fixes a tomeout problem caused by APR behaving differently from the previous runtime library. This prevented, for example, gmail attachments to be uploaded.