btrfs-progs: compile fixes and shrink for usage on router

I had problems compiling btrfs-progs for ar71xx with uclibc. With the following patches I can use it finally. The last patch to shrink btrfs-progs is needed, as I had problems in the linking to libext2fs