Modified header to allow inclusion in C++.