root: upgrade to 5.34.12 and introduce --with-cocoa flag

Closes #502.