Split runtime into osdep