Adding prepareForLinking to mock to remove warning.

TBR

@devoncarew 

Fixes warning in source.