remove pedantic flag for compatibility with Mac OS X compiler