Undefined symbol detected ':Ui' and similar strange errors

Hello,

I have not been able to compile anything using the 6.* or 4.* sdk as I get undefined symbols errors ':mySymbol' where ":" is added before existing symbols. For example, the following line raises the following errors:

var layout = Ui.loadResource(Rez.Layouts.MainLayout);

ERROR: instinct2s: /home/ciq/src/source/PilluleView.mc:13,8: Undefined symbol ':Ui' detected.
ERROR: instinct2s: /home/ciq/src/source/PilluleView.mc:13,8: Undefined symbol ':MainLayout' detected.

This is a rather unexpected behavior :(. Has anyone encountered a similar issue?