Add dylib to project and improve packaging.