Use BUILD_SHARED_LIBS cmake standard.

hi,
I replaced BUILD_STATIC_LIBS by BUILD_SHARED_LIBS, that is the standard, see here:
http://www.cmake.org/cmake/help/v3.0/variable/BUILD_SHARED_LIBS.html