Trying to get rid of states mechanism in native compiler.
If code cannot be dynlinked, it is lazily recompiled.
Better handling of states mechanism.