Add dependency for cmac.
Fix OS X linking bug.