Fix -Wunused-function in a non-Win32 build