Build with both new and old libjson.