Added verbose option and fixed compile/link flags.

Added a verbose option to output compile and link commands as they are run.

Compile and link flags were not always forwarded when make was called
recursively. Fixed by using separate variables to hold the build specific
settings and only combining them once.