adding options to mux
Implemented SetMux function to use existing muxer with API.
fixing build
making the mux options configurable