Serial: Handle the UnsatisfiedLinkError when loading the native library fails

This currently happens with exported applications (see #2249).
Merge pull request #2266 from gohai/serial-new

Serial: Handle the UnsatisfiedLinkError when loading the native library fails