postgis test: fix for postgis < 2.x
better clearing of non requested or non buildable plugins