Adding g++ flag -m64
adding #include <unistd.h>
adding the g++ flag -m64 for plugin compile