Separate windows module from plotting module

Make explicit the binding of the AGG mutex.