Compile with optimisations