Fix finding librexgen under OSX.