use c++11 thread instead of pthread in AssetsManager