compile tools with -g for debug symbols