Minor bug fixes.
Added build task to build everything.