Excactly it gives me invalid ELF header when i putted the .dll in the plugins
Like I said, try loading a plugin file .so for Linux and add the extension to it in the server.cfg to see the results. The invalid ELF header is still one given in Linux and never seen this in Windows.