add ssl/ub to the libs and generalise the paths a bit