Fix warnings on both C/C++ compiling
Replace some const with define: for pure C
Split ox_base to ox_base and ox_dev