added c++0x support (c++11 still not available in gcc 4.6, which is needed for CUDA)