Fix undefined symbol error on Windows