Update Mosek.cpp wrapper to support mosek 7
issue #1287