Fixes for compilation on Raspberry Pi. closes #8