I had to change this line
const CScriptID& hash = boost::get(address);
in rpcrawtransaction.cpp to
const CScriptID& hash = boost::get(address);
to get it to compile on Ubuntu 16.04 LTS. Otherwise I was getting an error
/usr/include/boost/variant/get.hpp:178:5: error: invalid application of sizeof to incomplete type boost::STATIC_ASSERTION_FAILURE
Can you please confirm this change doesn't break anything?