added skipping of lib/ and swig/ if sources list is empty

also outputs a message to let users know why (and that) this is happening. Will hopefully save people from confusion.