fixed static + @:getter (fixed issue #1312)

git-svn-id: http://haxe.googlecode.com/svn/trunk@6018 f16182fa-f095-11de-8f43-4547254af6c6
prevent a built class already in macro context to have macros (fixed issue #1227)

git-svn-id: http://haxe.googlecode.com/svn/trunk@6019 f16182fa-f095-11de-8f43-4547254af6c6