Fixed missing defines in HAL.