rpi: Fix various build problems