 +$(APP_CORE): INCLUDES=-I./ -I$(PREFIX)/include/
  ifeq ($(MODE), shared)
 -$(APP_CORE): LDFLAGS=-L$(PROJECT_LIB) -lnnp
-+$(APP_CORE): LDFLAGS+=-lnnp
++$(APP_CORE): LDFLAGS+=-lnnp -lrt
  else
  $(APP_CORE): LDFLAGS=$(PROJECT_LIB)/libnnp.a
  endif

+$(APP_TRAIN): INCLUDES=-I./ -I$(PREFIX)/include/
 ifeq ($(MODE), shared)
-$(APP_TRAIN): LDFLAGS=-L$(PROJECT_LIB) -lnnptrain -lnnp -lgsl $(PROJECT_LDFLAGS_BLAS)
+$(APP_TRAIN): LDFLAGS+=-lnnptrain -lnnp -lgsl -lblas
 else
 $(APP_TRAIN): LDFLAGS=$(PROJECT_LIB)/libnnptrain.a $(PROJECT_LIB)/libnnp.a -lgsl $(PROJECT_LDFLAGS_BLAS)
 endif

+nnp-train: INCLUDES=-I./ -I$(PREFIX)/include/ -I$(PREFIX)/include/eigen3/
 ifeq ($(MODE), shared)
-nnp-train: LDFLAGS=-L$(PROJECT_LIB) -lnnptrain -lnnp -lgsl $(PROJECT_LDFLAGS_BLAS)
+nnp-train: LDFLAGS+=-lnnptrain -lnnp -lrt -lgsl -lblas
 else
 nnp-train: LDFLAGS=$(PROJECT_LIB)/libnnptrain.a $(PROJECT_LIB)/libnnp.a -lgsl $(PROJECT_LDFLAGS_BLAS)
 endif
