WITH_THREADING should go as preprocessor macro. my bad ;)