Index: uspace/lib/cpp/src/ios.cpp
===================================================================
--- uspace/lib/cpp/src/ios.cpp	(revision 00d9778441f487bb88808cce7174d7487db6e0c6)
+++ uspace/lib/cpp/src/ios.cpp	(revision 408256727791e30d914ee6c6423be75fb9b1bb0f)
@@ -31,4 +31,9 @@
 namespace std
 {
+    int ios_base::index_{};
+    bool ios_base::sync_{true};
+    long ios_base::ierror_{0};
+    void* ios_base::perror_{nullptr};
+
     ios_base::ios_base()
         : iarray_{}, parray_{}, iarray_size_{}, parray_size_{},
@@ -37,5 +42,5 @@
     { /* DUMMY BODY */ }
 
-    ~ios_base::ios_base()
+    ios_base::~ios_base()
     {
         for (auto& callback: callbacks_)
@@ -43,5 +48,5 @@
     }
 
-    auto ios_base::flags() -> fmtflags const
+    auto ios_base::flags() const -> fmtflags
     {
         return flags_;
@@ -75,5 +80,5 @@
     void ios_base::unsetf(fmtflags fmtfl)
     {
-        flags_ &= ~fmtflags;
+        flags_ &= ~fmtfl;
     }
 
@@ -115,5 +120,5 @@
     }
 
-    locale ios_base::get_loc() const
+    locale ios_base::getloc() const
     {
         return locale_;
@@ -156,5 +161,5 @@
         if (!parray_)
         {
-            parray_ = new long[initial_size_];
+            parray_ = new void*[initial_size_];
             parray_size_ = initial_size_;
         }
@@ -165,5 +170,5 @@
           //       and return perror_.
             size_t new_size = max(parray_size_ * 2, idx + 1);
-            auto tmp = new long[new_size];
+            auto tmp = new void*[new_size];
 
             for (size_t i = 0; i < parray_size_; ++i)
@@ -186,5 +191,5 @@
     void ios_base::register_callback(event_callback fn, int index)
     {
-        callbacks.emplace_back(fn, index);
+        callbacks_.emplace_back(fn, index);
     }
 
