minor changes to debug compiling & linking altogether