Moved sources to sub directory and fixed build scripts.