Build script for filters.c
fixes memory leak in filters implementation