Replace configure macros by explicit platform checks (probably not