Make the checkPackagePrivateAccess functionality an option

This is only needed for 4.2.0, but not 4.2.1. Both are api 17, so we can't
tie this functionality to an api level.