small fixes for libsdl:2