BLD: Made build extensions more flexible

I need to include 'libraries' and 'libraries_lib' arguments to the `Extension( ... )` setup for #1698. This pull request just allows each extension to define additional **kwargs in the Extension call.