Fix regex regcomp malloc not free'd
Fix pthread_kill signal nonsense
Fix issue #20: exclude doesn't always work

Use inodes instead of paths
Also correct some functions not declared static