Rename warn() to warning() to fix symbol conflicts on BSD and Mac OS