Added "make check" target.

- Leaving "make test" target as is for backwards compatibility. Ideally,
  "make test" should just build the binaries, not run them.
Updated .gitignore to ignore test-core* binaries.