Patches for VS 2012

1. Add thrust:: namespace to resolve tuple ambiguity;
2. Fix std::make_pair change in VS 2012 (the discussion on StackOverFlow: http://stackoverflow.com/questions/13902348/c2264-in-visual-studio-2012-when-using-make-pair).