Gracefully fails if theano or cython are not installed.

Fixes issue #50.