container lib is now compiled with -O2, added function to get number of available threads inside the threadpool