Fix for 32-bit systems

libcap dumps libraries in $dev/lib64 if on 64-bit, but musl-gcc doesn't
seem to utilize it.  The old fix for that results in an error on 32-bit
systems.  This is a more flexible fix.