Some lua debugger work, possible crash when debugging paint() routines (for now only on linux but
if this is an issue on other platforms debugging might be problematic)