use PREFER_STATIC_LIBS from spring