Build script updated. Cuda compiling and basic features work.