I was having this issue for a while and was trying to find out the reason.
Eventually I added
#pragma glsl
to the shaders that weren't compiling and that seemed to do the trick. Not sure if it is the proper fix. If it helps i'm still on Unity 4 and building for a mobile on OS X 10.10.5. Now if only I could get Amp Texture working .