Don't define methods unavailable on Windows.