compile all .cpp files into .o and then link to binary