Fix beaglebone compile error