Add a missing #include <thrust/detail/minmax.h>
Fixes #383
Merge pull request #384 from jaredhoberock/issue-383

Issue 383