#if guards for boost 1.56 compatibility