Fixes for newer BlackBerry SDK