Try to fix linking failures under Windows