Build with pedantic, solve pedantic warnings