Merge pull request #1 from gregnietsky/master

Some changes for latest dtsapplib
Use unref not remove_bucket_loop
Merge pull request #1 from Distrotech/master

Use unref not remove_bucket_loop