Update build refind to WriteMem gadgets funcion.