fix libgcc for freebsd and clean up