Allows for enabling different serial thread methods with an #ifdef