Fix ld. Add DEBUG variable to debug Makelib