Fixed compile errors for VStudio where VS is not C++11 compliant