Added missing extern "C" to export the plugin entry functions
Get the path of the executable using readlink("/proc/self/exe")
Added debug options and RPATH for easier debug with gdb
Added executable to the .gitignore