Make some changes to let JSMime tests run under xpcshell (for import into Thunderbird).