Factored out common performance measurement code
Fixed warnings
Set 'Symbols hidden by default' to NO for release builds to be able to build unit tests in Release configuration