UA OpenSSL build fixes

Squashed commit of the following:

commit 50c37765f4f422c6e6440b37904dddc30915aba5
Author: Andrey Kislyuk <akislyuk@builder2.in.dev.dx>
Date:   Mon Dec 2 10:30:02 2013 +0000

    UA OpenSSL build fixes

commit c3118ca51787b6d70f68e25d294e64f0884d7163
Author: Phil Sung <psung@dnanexus.com>
Date:   Fri Nov 22 21:54:29 2013 +0000

    Need relative path to openssl

commit ad9644fb7a6a9bfd17ac29803dbfb11091db6dd7
Author: Phil Sung <psung@dnanexus.com>
Date:   Fri Nov 22 01:02:30 2013 +0000

    Build fix for curl on CentOS.