Fix name lookup issues in OpenModelica