Fix compile error when used on swift

Change “Optional” define to “JMOptional” because  the “Optional” is a
built-in type on SWIFT