Implement static HRM SMode flags
Fix Travis CI build error