* fix typo for BUILD_BOTH_LIBS to fix static lib * while at it remove unused BUILD_STATIC_LIBS Fixes #23217