tested with the latest Pangolin, gcc/g++4.7 and CUDA 5.5 (not used in this project yet)