build: Add a compile error log

the & after the > tells the shell to dump both stdout and stderr to the log. This can also be used with pipes.