Fix test application on OS X/Windows.