Moving jpgd dependencies to separate third party libraries.