Bump boost dependency from 48 to 49 for hhvm 9999.
Add depedency on imagemagick and patch the CMake file for finding imagemagick.