enable pool for linux and fix some bug for object