Update code for latest versions.

Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 5.10.4
The Glorious Glasgow Haskell Compilation System, version 7.6.3
SWI-Prolog version 6.6.4 for x86_64-darwin13.1.0
Python 2.7.5
ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin13.1.0]