Avoid warning about signed/unsigned comparison
Avoid alignment problems with reinterpret_cast
Merge pull request #564 from thrust/1.8.0

1.8.0