Add support for phantomBinary and phantomFlags.