Remove unused variable, add linker flags
Just a nitpick