Make code compile with libcpp.
Merge pull request #7 from alexk7/libcpp

Make code compile with libcpp.