Add compat_s.h
Cleanup build scripts