fixed dlopen so it supports the chunked file read
added fix for lazy file loading (no head requests until necessary)
actually fixed dlopen when using chunked file read
Merge pull request #1184 from jallwine/old_shared_libs

fixed dlopen so it supports the chunked file read