fixed weird Delphi XE3 specific bug for the SpiderMonkey library
as stated by http://synopse.info/forum/viewtopic.php?pid=12598#p12598