Fix compilation on SDK7