make it compile with the right config on both beaglebone black and raspberry pi