Updating build settings and implementing restify_errors for sample app