Minor enhancements to angelscript and the dynamic lib.