Fix #15 for iOS 64-bit reported by ljlin. Add mgvector<long> type.

Thank for [ljlin](https://github.com/ljlin).