Fix portable library build break