fix some issues with OPENBATTLE + cl flag