Remove mutex stubs

I only plan to use this as a command line program in a single thread so mutexes
are not needed.
Put the ifdef in the h file only
Default to optimized build with -O3
Start implementing command line parsing