Fixed building with mingw-w64.

Renamed OFStandard::rand_r to OFrand_r to prevent collisions with
mingw's rand_r macro. Adjusted file position and offset data-types for
mingw-w64. Fixed some warnings caused by inconsistent inline-specifiers
in DcmTagKey.