Disable some debugging options and update some optimization flags