Fixing code to work with Visual Studio 2013RC and Boost 1.55 beta.

Needed to include a few more headers to get it to compile in VS. Also fixing bug where a negative number was passed to a uniform_int_distribution of size_t.