Fix -Wunused-function warnings on Windows.