openfimg: compiler: Find out variables defined for AST nodes

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>