Updated to support building static archives and to check a cache variable regarding PC/SC working