PROTON-774: Fix warnings in log.c and url.c and re-enable -Werror in JavaScript CmakeLists.txt