update of libwebpg master branch
fixes for building