Fix build with curl optons on/off