Fix BeQt compatibility