making build configuration as sane as I can come up with; apache license everything