[core] Make sure shaders are compiled before programs are linked
[hacc] Check specific attrs before attrs function