prepare library files for curl and json and jpeg