tweaks to make firmware compile