added support for linux compilation