Remove non-standard memrchr.
Remove some non-POSIX features.
Update ax_with_curses.m4.
Fix bug in chmod (closes issue #55).
Use AC_SEARCH_LIBS instead of AC_CHECK_LIBS to fix function crypt not found when configuring.
Add statvfs
Use crypt_r instead of crypt if it exists for thread-safe.
Merge pull request #28 from likema/HEAD~~

Use AC_SEARCH_LIBS instead of AC_CHECK_LIBS in configure.ac.
Makefile.am: add lua52compat.h to EXTRA_DIST.
Makefile.am: Update woger call.
Makefile.am: update woger call.
Make curses module work with Lua 5.2 module system (patch by StarWing).
Return old C handler from signal, so it can be chained; fix masking of signals during Lua handler.
Bump version to 5.1.17.
Add correct license, and refer to it in README.
Make configure accept Lua 5.2.
posix.lua: make Lua 5.2-compatible.
Bump version to 5.1.18.
Improve documentation for use with Lua 5.2.
tests-fcntl.lua: make them work with Lua 5.2.