Add support older numpy versions