fix nipap/sql/Makefile

This should fix some problems in the Makefile.