configure: Prevent in-tree builds

Fixes #251.
Make rust-png depend on libpng

Fixes #1014.
Add CONTRIBUTING.md

Fixes #1026