Add several GCC flags
Fix temp dir dependency