trivial improvements

1. remove the useless configure option when building shared extension

2. some more coding style issues