Added missing #ifdef checkers to libviennacl test.

Previously required both OpenCL and CUDA to be enabled...