build: Adding -stdlib=libc++ flag, so the code can be compiled on OSX 10.8

Change-Id: I1bc09453944df0a7d79685fa43b1881067d710de
Refs: #1930