build: Switch phan to special library mode
Bug: T334492 Change-Id: Ib359d0a80a812fa7e67cbbdd3b3c0a77039306de