Add library check

If the check passed, it is added to $LIBS automatically.
Indent
gitignore: add mkmf.log