Fixes to libcanopy needed for fan demo