Fix unused variable warning on non-WIN32 platforms