FIX: make the user callbacks definition Windows-specific mandatory presence only when compiling for Windows platform.