Allow to cross-compile in js