boost backported from arch-linux and some fixes