Fix an error made in removing the SoftmaxLossLayer GPU stubs

#1655 was accidentally merged breaking the `CPU_ONLY` build, since the GPU stubs were still being generated in that case. This PR should fix that.