removed narrowing conversion, added linux compilation