The current build.rs is unnecessary, the link attribute can be used on the extern declaration blocks.