compilation fixes for raspberrypi