Two source code fixes, so the source builds better on Mac OS X. Some compilation problems remain but they need more looking into.