Use BUILD_SHARED_LIBS var