added libc++ guards and updated formatting