First step at implementing stupid compiler logic.

Check for undefined references.