Fixed stupid error making all conditions waitUntil return immediately.
Added documentation for C++11 hack header.
Added sprintf_s for VS builds to remove CRT security warning.
Added inline files to separate declaration from implementation. Also added event manager access helper to UISystem.