Support OpenMP

Simplify #if statements
Support OpenMP