Fix build issue on Linux. Also, adjust spacing between add and
remove buttons of TensorListWidget for Mac OS X and Linux.