Various minor fixes for GCC 4.2.1 and Boost 1.33 when using -Wextra