Fix errors and warnings generated by Visual Studio

Visual Studio is very good at generating errors (and warnings). This
commit disables sort and reduce_by_key tests for Visual Studio because
this do not work there.