Fix BeQtCore, BeQtSql and BeQtWidgets bugs