Fixed bug running CMAKE.

Changed HHVM_LINK_LIBRARIES and HHVM_EXTENSION macros to functions.