Compile with -fvisibility=hidden