Now both static and dynamic compilation are working.