Corrected some project settings.

Also added some bits to the hal.