Move -Wswitch-default and -Wshadow to global settings, add -Wno-error=shadow to compensate for shadows in Boost 1.55.0