Replace "Try to fix Solaris build" with compatibility compiler flags