added TSDL_Error
added sdl_shape.h and TSDL_Window
few compatibility changes for XE4 and Mac
added sdl_mutex