expose mutex, cleanup windows header includes