Fixes #299. The linkage exception is now catched.