Removed external jsoncpp dependency and fixed mkdir on non-Windows.