Fixed linux compilation bug in eclipse

Added some guards to prevent Eclipse to compile twice the same class.