updated compile to use libffi in path