threadpool that actually works now :P
cross platform timing / sleep functions.. beacuse threads are fun