Added missing includes and renamed log2() to _log2().
Changed back slashes in includes to forward slashes.
Updated to work with SDL 2.