Fix duplicate definition warning on Linux