Add check for large file support
Remove check.h

Now all large file related definitions are included in CFLAGS.