Build fixes for NMI.