Moving capt_hist into PROCEDURE_SECTION for successful compilation on OS X.