Fixing Build.VERSION_CODES related issues

Signed-off-by: Umair Khan <omerjerk@gmail.com>