Changed build procedure such that main src compiles to library
Changed build procedure such that main src compiles to library