code: private static String createLibraryExtension()
      {
          OSType osType = calculateOS();
          switch (osType)
          {
              case APPLE:
                  return "dylib";
              case ANDROID:
              case LINUX:
              case SUN:
                  return "so";
              case WINDOWS:
                  return "dll";
              default:
                  break;
          }
          return "";
      }
docs: Returns the extension for dynamically linked libraries on the
  current OS. That is, returns <code>"dylib"</code> on Apple,
  <code>"so"</code> on Linux and Sun, and <code>"dll"</code>
  on Windows.
  
  @return The library extension