Delete d_ptr automatically
Remove wrong DLLEXPORT