Updates to ADFlib for portability