Add TLS, compile pjproject with optimization off