replace SUBMAKE for dll target

- force PIC for shared library targets
- make default target depending on dll and $(LIB)
- add debug and release target (shortcut for BUILD=debug)