Fixed filter
Moved _BSD_SOURCE to Makefile