Fix GCC warnings
Enable -Werror for nacl build
Add automatic dependency generation