KSO: logging changes; fast PID & TID retrieval; added functions to set/clear the odin environment (fs, exception handler)