Clean up dependencies.
Remove obsolete 'GetLocation' instruction.
Remove obsolete 'Begin' and 'End' instructions.
Replace 'Clear' instruction by FFI call.