Commit f20e25e0c07013bb926232c6916d6bdb7ab3021f

Ycros 2011-07-06T19:46:02

Moved pthread mutex inits up, due to applog using a mutex causing a crash. Added Win32 compatability to opt.c.