Fix for Simba crash, TGraphicControl was undefined
Removed addClass and addClassVar methods, added them to the TLapeCompilerHelper class helper. (We now require FPC2.6\!)
Added an FFILoaded check. Added Sync and GetCurrentThreadID.
Merge pull request #211 from Dgby714/master

Fix for simba crash when compiling Lape scripts.