[UML] fix gcc ICEs and unresolved externs