Add EFM32 libraries, resolve compilation errors