build: fixed freebsd gmake issue and remove static libs with distclean