On the roles of hunting and habitat size on the extinction of megafauna