Replace sleep and beep macros with inlined functions