Add `lib` build directory to .gitignore file.
Use `getopts` library instead of hand-made arguments parsing.