otp build macro to get correct layout

Change-Id: I5aa44455ae8bc857342d57dca0848f6fa4ba8957
Reviewed-on: http://review.couchbase.org/35367
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>