Adding some sanity checks to AndroidCGBuilder, adjusting access modifiers for a few fields