[gcompat] [PATCH V2] Makefile: Add LIBDIR variable