Modified some files to work inside the Titanium SDK