Clean dependencies towards ocplibs

* Move most simple functions to stdlib2.ml
* Pack all remaining modules into a BuildBase module