fixed using SDL internal structure in platform independent code