fix moc issue(regression from cmake change that didn't break on my sys)

use const_cast to workaround 5.3 bug for now, until this code gets
replaced/fixed proper