Add -Wall -pedantic, fix warning