Fix build for BlackBerry and SDL 1.2