[Truffle] Add enough library support to run some of chunky_png and psd.rb.