Removed unneccessary extern, added pedantic and Wextra to build, cleared a warning