Fixed a few compiler warnings and compilation on OS X

How can it be a error? I don't understand :) _currentSurface must be unsigned value