Your comments

If your still trying to figure this out we managed to get it working by un-ticking all Target Renders. By default shaders are compiled for all renderers. Un-ticking all Target Renders in Shader Forge removes the #pragma only_renderers line all together and has solved the problem for us.