fix indent style
commend about libgd-config's bug
some refactorings and fix setup bug(ngx_feature_test fails)
some refactorings