Link rand and sprintf functions into application directly
Move source files into separate directories