Changed resource path and fixed bad_cast issue with istreambuf_range
Propagated istreambuf fix to merge