Fix pointer handling; add raw memory constructors for vector
Fixes for building without OpenCL; some clean-up