include: add various missing extern C decls.
include/winpr/pool.h: fix windows build.