Added #ifdef to allow regression against system lib.