fixed OpenMP in cmake file
fixed some warnings