Fixed the build script to work on windows.

Most of the deprecations have been removed.

Started on fixing the recipies and resource paths.