Resolved problem with dllmian.c with code combined from main.c
Added flags to build debug symbols