Add an include guard to scopedptr as it is likely to be included
multiple times.