Configure which libraries to build using environment variable