Include cub headers
Test for devicePtrAt with cub
Fix pointer types used in devicePtrAt