Fix ack build and add dependence on lib.