Using DEBUG=1 for debug builds is more standard then DEBUGGING
Modernize drag and drop code

Drag and drop changed significantly with 10.6 and is much simpler now.
Cleanup debugging for release build