build mirage libs in a separate dir to avoid lwt clashes