Fix spurious gcc warnings with Boost patches from upstream

All warnings fixed for gcc4.8