fixed debian build, still need to fix unit test