--- a/kent/src/inc/common.mk	2017-11-07 17:46:00.000000000 -0500
+++ b/kent/src/inc/common.mk	2017-11-13 17:44:51.017090255 -0500
@@ -17,7 +17,7 @@
 endif
 
 HG_DEFS=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DMACHTYPE_${MACHTYPE}
-HG_INC+=-I../inc -I../../inc -I../../../inc -I../../../../inc -I../../../../../inc -I$(kentSrc)/htslib
+HG_INC+=-I../inc -I../../inc -I../../../inc -I../../../../inc -I../../../../../inc -I${kentSrc}/htslib -I${PREFIX}/include -I${BUILD_PREFIX}/include
 
 # to check for Mac OSX Darwin specifics:
 UNAME_S := $(shell uname -s)
--- a/kent/src/inc/common.mk	2022-10-25 12:00:00.000000000 +0100
+++ b/kent/src/inc/common.mk	2022-10-25 12:00:00.000000000 +0100
@@ -147,4 +147,4 @@
-       L+=${PREFIX}/lib/libssl.a ${PREFIX}/lib/libcrypto.a -ldl
+       L+=${PREFIX}/lib/libssl.so ${PREFIX}/lib/libcrypto.so -ldl
    else
      ifneq ($(wildcard /opt/local/lib/libssl.a),)
          L+=/opt/local/lib/libssl.a
--- a/kent/src/hg/lib/straw/makefile	2022-10-26 12:00:00.000000000 +0100
+++ b/kent/src/hg/lib/straw/makefile	2022-10-26 12:00:00.000000000 +0100
@@ -1,4 +1,4 @@
-KENT_INC=-I../../../inc
+KENT_INC=-I../../../inc -I${PREFIX}/include

 straw: straw.o cStraw.o
 	ld -r -o ../straw.o straw.o cStraw.o
--- a/kent/src/utils/expMatrixToBarchartBed/expMatrixToBarchartBed	2018-06-06 02:23:56.000000000 +0200
+++ b/kent/src/utils/expMatrixToBarchartBed/expMatrixToBarchartBed	2018-06-06 02:23:56.000000000 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2.7
+#!/usr/bin/env python
 # expMatrixToBarchartBed
 """
 Generate a barChart bed6+5 file from a matrix, meta data, and coordinates.
