Fix MacOS X build issue: don't use reentrant random number generation; wrap calls to random number generator in OMP critical sections instead. (Thanks to @ctb for bug report.) [closes #26]