libc++ compiles, but not works