Fixes for ambarella compilation