Compiling and linking on Linux