Adapting build to now apply patches on linux.