Wlogfix

* added c++ declarations for wlog