Support x64 compilation

Added -fPIC compile flag to support x64