two fixes

Without the build fix, I wasn't able to build leptonica for kobo, which relies on libpng with neon support. Anyone has same problem?