Init static variables in libcdc before mainloop starts.