fixes to lib loading paths