add libpng and jpeg build dependency