declaration of uint moved outside the WIN32 definition, because otherwise gcc complains about its inexistances when using standard C++ headers