Including curl dependency, corrected library calls and moved relevant libraries from nailsapp/common