message: Node VCX Wrapper resolves path correctly in OSX
diff: import * as ffi from 'ffi'
  +import * as os from 'os'
  import * as path from 'path'
  import { FFIConfiguration, IFFIEntryPoint } from './rustlib'
  @@ -12,6 +13,9 @@ export interface IVCXRuntimeConfig {
  // VCXRuntimeConfg is a class that currently only contains a chosen basepath for the .so file
  // I made it a class just in case we think of more needed configs
  +const extension = {"darwin": ".dylib", "linux": ".so", "win32": ".dll"}
  +const libPath = {"darwin": "/usr/local/lib/", "linux": '/usr/lib/', "win32": 'c:\\windows\\system32\\'}
  +
  export class VCXRuntime {
  public readonly ffi: IFFIEntryPoint
  private _config: IVCXRuntimeConfig
  @@ -24,8 +28,13 @@ export class VCXRuntime {
  }
  private _initializeBasepath = (): string => {
  - const library = 'libvcx.so' // TODO: FIXME provide better way to resolve library
  + const platform = os.platform()
  + // @ts-ignore
  + const postfix = extension[platform.toLowerCase()] || extension['linux']
  + // @ts-ignore
  + const libDir = libPath[platform.toLowerCase()] || libPath['linux']
  + const library = `libvcx${postfix}`
  const customPath = process.env.LIBVCX_PATH ? process.env.LIBVCX_PATH + library : undefined
  - return customPath || this._config.basepath || path.resolve(__dirname, '/usr/lib/' + library)
  + return customPath || this._config.basepath || path.resolve(__dirname, `${libDir}${library}`)
  }
  }
  