change to forked libbpg to enable compilation on MacOS X