Treat stylecop errors as warnings in debug builds

Closes #126