make it compile on OS X

I've tried compiling some simple filterscripts and it seems to be working just fine.