Enables compiling dynamic libraries in cuda.
Fix tomo.cxxscale