Fix Integration tests
Fix build.pl