make.sh: add support for library dependencies through a LIB_DEPENDS file. This allows the order of arguments in LIBRARIES to be arbitrary. All libraries (including dependencies) must still be listed in LIBRARIES.