fixed drop bug. and fixed source to compile with rustpkg