Turn on more warnings as errors and rectify them