Fixes the compilation for the EFM32 platform.

A few code changes with the new LoRaMac release broke the compilation for the EFM32 platform. This fixes the problems.