mpcrt modified to throw an error if lqr is asked for