fixed linkage error
surpress unused argument warning
make deployable on Linux
removed finalizer and revert due to failed quitting application