Balance signed/unsigned issues between msvc and gcc