main: fix --with-system-includedir and --with-system-libdir behaviour (closes #63)