Use Release configuration for ctest scripting.
Use more complicated dummy code to silence ranlib on MacOS.