Libraries and utility programs for using capabilities