Include platform.h instead of ifdef'ing

Change-Id: I23b3202563623b46d94c10459837581be231f58e
Reviewed-on: http://review.couchbase.org/30386
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>