Well the *easy* thing would be to wait a week or two for our dev builds of the next release. This way you don't have to try and compile things yourself. Our source build is pretty complex as you need to get the source for many 3rd party components. If you want to take that path here's a place to start:
Read-Only CVS Now Available
There is a how-to in ZimbraServer/docs