DEBUG: try removing -lpng from link flags