Use API level 21 and fix build errors.