Add compilation guard; prepare for #inclusion in C++