C++ compiler fixes in lbgpu