updated version (matches flex)
simpler LIB_PATHS assignation
updated to the deprecation of Loader