Replaced mode_t with unsigned, so libgtorrent compiles in windows and in
linux.