fixed compilation on non-Windows platforms.