flowgrind: Remove most OS specific ifdefs from the controller