Make build rules portable.