Compat with older numpy versions