build: move error check to after summary in configure.ac.

Otherwise, if OpenCL is not found, the rest of the summary is not
printed.
core: use pool->name instead of pool->poolname in code merged from `port-ckolivas`.
Revert "thread shutdown is different on windows"

This reverts commit 1bb2cadfa6a319ac889d63af519df2ee858807ce.