fall back to js optimizer if native could not be built