Fixed raspberrypi support and added conditional disabling of code paths

Signed-off-by: Carlos Rafael Giani <carlos.giani@streamunlimited.com>