made qrmc compilable
Merge pull request #1360 from qreal/fixesForQrmc

made qrmc compilable