Use remove() instead of the nonstandard unlink()

Change-Id: I5e055b0f9c80550422114498da97210625727643
Reviewed-on: http://review.couchbase.org/30393
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>