Optional dependencies

Reverse conditions, so the default compilation environment don't need any define.

Need to add something to set those flags automatically from cmake detection.