Clean compile with PRAGMA and better exports