New build script (WIP)

(WIP) - Do not use this yet, unless you want to test it.