Make detectWTF a getter

Make wtfEnabled a getter as setting it to true without a call to detectWTF puts the library into a unstable state.

Also removed an unused variable.
Does it work here ?