fixed compilation warnings and errors when not using curl