Revert "Remove redundant declaration of insert"

This reverts commit 065b6a3dc1c37d55e3b7d16e13dbae9ef8eecc4b.
turns out we need the special case for normal and release builds on mac osx. no change for other architectures.