Fixes and improvements in dynamic cuda support.
Fixed logical error in macro check;
Fixed DeviceInfo deligate;
Implemented dynamic library loading.