Use Foo::from(ptr) to construct objects (to fix build error on master).
Merge ‘rust-servo’ branch into rust-0.8: Use Foo::from(ptr) to construct objects (to fix build error on master).