Better thread pool managing from api
added new test
mingw cross compilation