Fix build on Windows.

mingw doesn't have 'rt' library.