build libgenlock