refactor ribs2, ssl .mk files