It's a known issue (it's actually 2 separate issues). It was identified too close to the CUDA 6 release to fix in CUDA 6.
It should be fixed in a future release.
In the meantime, you should be able to work around it by reversing the order of inclusion of those header files, or else you can try updating to the current Thrust master branch.