Update BFOL.h

Moved typedef of ERR_MSG to a dedicated header file for inclusion in all interfaces.