error while compiling the PID_Basic.ino code exemple from the PID library

Sounds like an incompatibility with 1.0.6 (or your installation of 1.0.6 is faulty in some way). That version is over three years old but if you really want to use it for this project you may want to try re-installing it.