Merge "hal: fix compiler warnings which are now treated as errors"