Remove legacy buildtools
Only define WITH_xxx when libraries were successfully detected.
Add RGB16 PNG output