Added NanAdjustExternalMemory and NanSetTemplate