Fixed cygwin compile
Fixed gcc pedantic warnings in public headers