Fixed a lot of errors when building