To the OP - we had the same problem CIC didn't recognize our Sharia court marriage from Jordan which was concluded proxy.
You don't need to get married to your wife again. Instead, your wife should register your marriage in Civil status department in Libya. And / or she can update her Libyan ID...