Fixed compile issue specific to my machine, removed unreferenced variabl...

Not burning more time on root cause, maybe I'm just special.