Add sphinx to maven build and fix Mac/Linux tests