Changed compiling to use packaging