Added Apache License and generalized build