build against libc++, resolve c++11-specific errors in demo