more effective memory pool
fix compile error
update for more portable
update for more portable
add thread detach method
replace ldap option get/set throw error by return nil,error
support register extern dbd handle by mod_dbd