ENH: Add library specific export specifier.

Turn on "ENABLE_SHARED" to make a the compiled library a shared one on
windows, and enable export specification on other platforms.