- don't force disabling of asserts in debug builds
- fix for issue 1944: assert when exporting event the second time
- Fix for Bug 1949: Problems casting to CFunction