diff --git a/loch/Makefile b/loch/Makefile
index 3c10e46..6cb7188 100644
--- a/loch/Makefile
+++ b/loch/Makefile
@@ -63,7 +63,7 @@ endif
 CXXPFLAGS = -DLXLINUX $(shell wx-config --cxxflags) -Wno-deprecated $(shell freetype-config --cflags) -I$(VTKPATH)
 CCPFLAGS = -DLXLINUX  $(shell wx-config --cflags)
 LXLIBDIR = linux
-PLIBS = $(shell wx-config --libs --gl-libs) -L$(VTKLIBPATH) $(VTKLIBS) -lGLU -lGL -lpthread -lX11 -lz
+PLIBS = $(shell wx-config --libs --gl-libs) -L$(VTKLIBPATH) $(VTKLIBS) -lGLU -lGL -lpthread -lX11 -lz -lpng -ljpeg
 LXPLATFORM = LINUX
 
 # PLATFORM WIN32
