add some flags to make it build it properly