Added a workaround for MSVC compilation failure.

Fixes compilation errors for Boost 1.56. Tested with VS 2013 and "14" CTP.

Note the fix is not needed for develop branch since Boost.Iterator in develop already contains changes that resolve the compilation failure.