Bump next version to 4.0

Given that support for FreeBSD was added,
the next release will no longer be 3.1, but 4.0.