Pull fixes from allwinner-dev-team repo

The commits fix build crashes and there are no merging issues.