Refreshed patches and added one from alpine linux to fix musl compilation. Signed-off-by: Rosen Penev <rosenp@gmail.com>