added build rules with debugging symbols
fixed several warnings