Syntax fixes for build system.
Give back descriptor when requested.
Actually use debug_free.
Do not return NULL from pool_alloc.