Ubuntu files.
Move OSX build to separate build folder.
Move Ubuntu build to separate folder.
Merge `ubuntu` and `osx` branches.
Fix a lot of paths.
Move build part of Makefile.lib into a new file.