Make softdevice 7 and sdk 6 compilable