Fix posix Thread
Fix linux main
Fix ResourceLoader
Release memory on dtor call