Serial: Handle the UnsatisfiedLinkError when loading the native library fails

This currently happens with exported applications (see #2249).