Fix for using kernel headers and make it build with recent framework_av changes