Add Type.toJSExtern to get extern string

Related to https://github.com/appcelerator/hyperloop-windows/pull/49/files

- Add Type.toJSExtern to get extern string
- Add compiler.getFunctionCallName to customize function name depending on platforms