Setup theano dev version

Fixes #1058