The cause of the problems was the position where XINE-LIB library was added
into the flags of the linker: $(XINE_LIBS) must be added *AFTER* the libraries
that use it, otherwise it makes a circular dependency and the linkage fails
with some errors.
In other words, $(XINE_LIBS) must be put after $(LIBCOMMON) and $(LIBCOMMONX).