Fix directory handling for compile examples scripts

Also enable -Werror for C bindings and -vw for Delphui bindings.