bmdplay: use %ld to printf a long.
.gitignore: ignore generated files.