interceptor: added a compile-time script
the script asserts that the custom O_* flag is bigger than the biggest flag and is a power of 2