Added TanhForward CPU native impl.
Modified minst_mlp when CPU only.
Enable compiling mnist_mlp when CPU only.