Reordered some stuff in the Makefile for consistency between packages. Refreshed patches. Added a musl fix. Signed-off-by: Rosen Penev <rosenp@gmail.com>