added compiling and linking examples